<!DOCTYPE html>
<html>
<head>
    <title>组织管理</title>
    <script>
        var pageConfig = {
            jss: ["pc/system/org"]
        };
        var p = {
            permission1: "${shiro.hasPermission('sys:org:update')}",
            permission2: "${shiro.hasPermission('sys:org:delete')}"
        };
    </script>
    @@include("/pc/common/_head.html"){}@@
</head>
<!--class="layui-layout-body"-->
<body>

<div id="page">
    @@include("/pc/common/_search2TableConfig.html"){}@@
    <el-main>
        <el-col :xs="24" :sm="6" :md="6" :lg="5" :xl="5">
            <el-switch class="tree-switch" v-model="serchData.cascade" active-value="1" inactive-value="0"
                       width="36"
                       inactive-text="组织树： 级联显示部门"
                       @change="queryData"></el-switch>
            <!--<ul id="treeview"></ul> :default-expanded-keys="['1609052226010010']"-->
            <el-tree :data="treeData" :props="defaultProps"
                     @node-click="handleNodeClick"
                     node-key="id"
                     default-expand-all
                     :expand-on-click-node="false"
                     ref="tree"></el-tree>
        </el-col>
        <el-col :xs="24" :sm="18" :md="18" :lg="19" :xl="19">
            @@include("/pc/common/_search2Table.html"){}@@
            <el-row>
                <table id="org_table"
                       class="layui-table"
                       lay-filter="org_table">
                </table>
            </el-row>
        </el-col>
    </el-main>
</div>

<script type="text/html" id="table-toolbar">
    @@include("/pc/common/_buttons_table_head.html",{btns:[{id:'add',permission:'sys:org:init'}]}){}@@
</script>
<script type="text/html" id="script-orgsetting">
    <div lay-event="detail" class="layui-icon layadmin-tabs-control layui-icon layui-icon-edit">
    </div>
</script>
<script type="text/html" id="script-orgsetting-action">
    <ul class="layui-table-col-tool">
        {{#  if(p.permission1 =='true'){ }}
        <li inx="1">
            <a href="javascript:;">编&nbsp;辑</a>
        </li>
        {{#  } }}
        {{#  if(p.permission2 =='true'){ }}
        <li inx="2">
            <a href="javascript:;">删&nbsp;除</a>
        </li>
        {{#  } }}
    </ul>
</script>
</body>
</html>


